package schoolmath.web.services;

import org.apache.tapestry5.ioc.annotations.Inject;
import org.tynamo.security.services.SecurityService;
import schoolmath.web.entities.User;

public class UserServiceImpl implements UserService {

	@Inject
	private SecurityService securityService;

	@Override
	public User getUser() {
		return (User) securityService.getSubject().getPrincipal();
	}

}
